package com.dlwx.parttimetalent.adapter;

import android.content.Context;
import android.widget.TextView;

import com.dlwx.parttimetalent.R;
import com.dlwx.parttimetalent.bean.IntentClassifyBean;
import com.dlwx.parttimetalent.bean.LabelBean;

/**
 * Created by Administrator on 2017/11/21.
 */

public class LabelAdapter extends ListBaseAdapter<IntentClassifyBean.BodyBean.ChildBeanX.ChildBean> {

    public LabelAdapter(Context context) {
        super(context);
    }

    @Override
    public int getLayoutId() {
        return R.layout.tv_label_red_select;
    }

    @Override
    public void onBindItemHolder(SuperViewHolder holder, int position) {
        IntentClassifyBean.BodyBean.ChildBeanX.ChildBean bean = getDataList().get(position);
        TextView tvName = holder.getView(R.id.tv_name);
        tvName.setText(bean.getChildname());
    }
}
